package com.kandinfo.survey.weixin.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Description: 个人管理，包括注册、修改密码、登录
 * 
 * @author Patrick Chenzp-TG
 * @version 1.0
 */
@RequestMapping("/weixin/menu")
@Controller
public class WeixinMenuController {

    private static final Logger logger = LoggerFactory.getLogger(WeixinMenuController.class);

    /**
     * 设置主页
     */
    @RequestMapping(value = "/user-center", method = RequestMethod.GET)
    public String userCenter(Model model) {
        logger.debug("settings");
        return "/weixin/user/user-center";
    }

    /**
     * 设置主页
     */
    @RequestMapping(value = "/settings", method = RequestMethod.GET)
    public String settings(Model model) {
        logger.debug("settings");
        return "/weixin/user/settings";
    }

    /**
     * 设置主页
     */
    @RequestMapping(value = "/medical", method = RequestMethod.GET)
    public String medical(Model model) {
        logger.debug("medical");
        return "/weixin/user/medical";
    }

}
